package jsu.hx.lost.Model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("find_items")
public class FindItem {
        @TableId(value = "id", type = IdType.AUTO)
        private Long id; // 主键

        @TableField("addtime")
        private Date addTime; // 创建时间

        @TableField("item_name")
        private String itemName; // 物品名称

        @TableField("image")
        private String image; // 图片

        @TableField("item_category")
        private String itemCategory; // 物品类别

        @TableField("found_location")
        private String foundLocation; // 捡拾地点

        @TableField("found_time")
        private Date foundTime; // 捡拾时间

        @TableField("detailed_description")
        private String detailedDescription; // 详细描述

        @TableField("user_id")
        private Long userId; // 用户id
        @TableField("locate")
        private String locate;

        @TableLogic // MyBatis-Plus注解，标记该字段为逻辑删除字段
        private Integer isDeleted=0; // 是否逻辑删除，1表示已删除，0表示未删除
    }
